
import Vue from 'vue'
import Router from 'vue-router'
import ElementUI from 'element-ui'
import locale from 'element-ui/lib/locale/lang/en'//element-ui没有用
import Content from '../components/content'// 引入需要的组件
import Help from '../components/help'//帮助中心
import Client from '../components/client'//客户端
import Agent from '../components/agent'//成为代理商
import Buy from '../components/buy'//购买
import Account from '../components/account'//我的账户
import Regist from '../components/firmware/regist'
import SeeTraffic from '../components/firmware/seeTraffic.vue'//流量详情
import Manage from '../components/firmware/manage.vue'//设备管理
import ExchangeRecord from '../components/firmware/exchangeRecord.vue'//兑换记录
import MyselfData from '../components/firmware/myselfData.vue'//个人资料
import Modifypwd from '../components/firmware/modifypwd.vue'//个人资料修改密码

//全局安装路由功能
Vue.use(Router)
Vue.use(ElementUI, { locale })

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Content',
      component:Content //首页
    },
    {
      path: '/help',
      name: 'Help',
      component:Help //帮助
    },
    {
      path:'/client',
      name: 'Client',
      component:Client //客户端
  },
    {
      path:'/agent',
      name: 'Agent',
      component:Agent //成为代理商
    },
    {
      path:'/buy',
      name:'Buy',
      component:Buy //购买
    },
    {
      path:'/account',
      name:'Account',
      component:Account, //我的账户

    },
    {
      path: "/account/seeTraffic",
      component:SeeTraffic //我的账户流量详情
    },
    {
      path: "/account/manage",
      component: Manage //我的账户设备管理
    },
    {
      path: "/account/exchangeRecord",
      component: ExchangeRecord //我的账户兑换记录
    },
    {
      path: "/account/myselfData",
      component: MyselfData,//我的账户个人资料
    },
    {
      path: "/account/myselfData/modifypwd",
      component: Modifypwd//我的账户个人资料账户设置
    }
  ],
})

